package com.cpi.cornpp.bushelversion.view;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.cpi.cornpp.futurepurchase.view.CornOriginView;

public class BushelsByCornOriginVersionView implements Serializable{ 
	private static final long serialVersionUID = -4894417249692112438L;
	private CornOriginView cornOriginView;
	private List bushelsVersionViews;
	public BushelsByCornOriginVersionView(){
		bushelsVersionViews = new ArrayList(0);
	}
	public CornOriginView getCornOriginView() {
		return cornOriginView;
	}
	public void setCornOriginView(CornOriginView cornOriginView) {
		this.cornOriginView = cornOriginView;
	}
	public List getBushelsVersionViews() {
		return bushelsVersionViews;
	}
	public void setBushelsVersionViews(List bushelsVersionViews) {
		this.bushelsVersionViews = bushelsVersionViews;
	}
	public boolean equals(Object obj) {
		if(!(obj instanceof BushelsByCornOriginVersionView)){
			return false;
		}
		BushelsByCornOriginVersionView ergv = (BushelsByCornOriginVersionView)obj;		
		return ergv.getCornOriginView().equals(this.getCornOriginView());
	}
}